function sideBar(){
	var oSide1=document.getElementById('side-zh');
	var oDiv=document.getElementById('side-1-id');
	var oLock=document.getElementById('lock-w');
	var oSide3=document.getElementById('side-3');
	var oHide=document.getElementById('lock-hide');
	var oSide4=document.getElementById('side-4');
	var oPin=document.getElementById('lock-pin');
	var oSide5=document.getElementById('side-5');
	var oPen=document.getElementById('lock-pen');
	var oSide6=document.getElementById('side-6');
	var oFan=document.getElementById('lock-fan');
	var oSide7=document.getElementById('side-7');
	oDiv.onmouseover=oSide1.onmouseover=function(){
		startMove(oDiv,{left:-277});
	}
	oDiv.onmouseout=oSide1.onmouseout=function(){
		startMove(oDiv,{left:310});
	}
	oLock.onmouseover=oSide3.onmouseover=function(){
		startMove(oLock,{left:-118});
	}
	oLock.onmouseout=oSide3.onmouseout=function(){
		startMove(oLock,{left:0});
	}
	oHide.onmouseover=oSide4.onmouseover=function(){
		startMove(oHide,{left:-118});
	}
	oHide.onmouseout=oSide4.onmouseout=function(){
		startMove(oHide,{left:0});
	}
	oPin.onmouseover=oSide5.onmouseover=function(){
		startMove(oPin,{left:-118});
	}
	oPin.onmouseout=oSide5.onmouseout=function(){
		startMove(oPin,{left:0});
	}
	oPen.onmouseover=oSide6.onmouseover=function(){
		startMove(oPen,{left:-118});
	}
	oPen.onmouseout=oSide6.onmouseout=function(){
		startMove(oPen,{left:0});
	}
	oFan.onmouseover=oSide7.onmouseover=function(){
		startMove(oFan,{left:-118});
	}
	oFan.onmouseout=oSide7.onmouseout=function(){
		startMove(oFan,{left:0});
	}
	$('.side_bg').hover(function(){
		$(this).css({'background':'#df147f'});
		$('.side_2_left').hover(function(){
			$(this).find('.side_left_i').css({'background-position':'-202px 2px'})
			$(this).find('.side_left_p').css({'color':'#f10180'})
		},function(){
			$(this).find('.side_left_i').css({'background-position':'-202px -88px'})
			$(this).find('.side_left_p').css({'color':'#333'})
		})
		$('.side_2_right').hover(function(){
			$(this).find('.side_right_i').css({'background-position':'-202px -28px'})
			$(this).find('.side_right_p').css({'color':'#f10180'})
		},function(){
			$(this).find('.side_right_i').css({'background-position':'-202px -58px'})
			$(this).find('.side_right_p').css({'color':'#333'})
		})
		
	},function(){
		$(this).css({'background':'#262626'});
	})
	$('.error').hover(function(){
		$(this).css({'background-position':'-193px -170px'});
	},function(){
		$(this).css({'background-position':'-175px -170px'});
	})
	$('.error').click(function(){
		startMove(oDiv,{left:310});
	})
    // 回到顶部
	var bSys=true;
	var timer=null;
	window.onscroll=function()//当页面滚动时
	{
		if(!bSys)//当点击了回到顶部，再滚动滚动条时就清除定时器
		{
			clearInterval(timer);
		}
		bSys=false;
		//背景图出现右侧空白BUG的解决方法
		if(document.body.clientWidth<=1004)
		{
			$('.focus-banner').css({'width':'1004px'});
			$('.mu_centair').css({'width':'1004px'});
			$('.jia_banner').css({'width':'1004px'});
			$('.pulgin-video').css({'width':'1004px'});
			$('.fen_top_nav').css({'width':'1004px'});
		}
		if(document.body.clientWidth>1004)
		{
			$('.focus-banner').css({'width':'100%'})
			$('.mu_centair').css({'width':'100%'});
			$('.jia_banner').css({'width':'100%'});
			$('.pulgin-video').css({'width':'100%'});
			$('.fen_top_nav').css({'width':'100%'});
		}
	 }
	oSide7.onclick=function()
	{
		timer=setInterval(function(){
			var scrollTop=document.documentElement.scrollTop||window.pageYOffset
			||document.body.scrollTop;//获取滚动条的位置
			var iSpeed=Math.floor(-scrollTop/8);//速度为负
			if(scrollTop==0)
			{
				clearInterval(timer);
			}
			bSys=true
			document.documentElement.scrollTop=document.body.scrollTop=
			window.pageYOffset=scrollTop+iSpeed;//速度为负，回到顶部		
		},30)
	}
}
	